package com.example.demo.consumer.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.example.demo.api.HelloService;
import org.springframework.stereotype.Component;

/**
 * @author 许路路
 */
@Component
public class ConsumerHello {

    @Reference
    private HelloService helloService;

    public void say(String name) {
        helloService.sayHello(name);
    }

}
